<template>
  <div>父组件
    <com11 :name="'父组件传递的数据'" @myEvent="method"></com11>
  </div>
</template>

<script>
import com11 from '@/components/zhishi/com-11.vue'
export default {
  components: {
    com11
  },
  methods: {
    method (data) {
      console.log(data);
    }
  }
}
</script>

<style>

</style>